﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage/PageTemplate.Master" AutoEventWireup="true"
    Codebehind="ServiceStat.aspx.cs" Inherits="FrameWork.web.Module.ITMS.Service.StatReport.ServiceStat"
    Title="无标题页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PageBody" runat="server">
    <FrameWorkWebControls:HeadMenuWebControls ID="HeadMenuWebControls1" runat="server"
        HeadOPTxt="服务单统计" HeadTitleTxt="服务单统计">
    </FrameWorkWebControls:HeadMenuWebControls>
    <FrameWorkWebControls:TabOptionWebControls ID="TabOptionWebControls1" runat="server">
        <FrameWorkWebControls:TabOptionItem ID="TabOptionItem1" runat="server" Tab_Name="报修部门统计">
            <table width="100%" border="0" cellspacing="1" cellpadding="3" align="center">
                <tr id="A_CatsNameSearch">
                    <td class="table_body ">
                        服务单类型
                    </td>
                    <td class="table_none ">
                        <asp:DropDownList ID="A_Cat" runat="server">
                            <asp:ListItem Value="-1">全部</asp:ListItem>
                            <asp:ListItem Value="1">已解决</asp:ListItem>
                            <asp:ListItem Value="0">未解决</asp:ListItem>
                        </asp:DropDownList>
                        <asp:Label ID="lblStatue" runat="server" Text="Label" Visible="False"></asp:Label>
                        <asp:Label ID="lblTimeBegin" runat="server" Text="Label" Visible="False"></asp:Label>
                        <asp:Label ID="lblTimeEnd" runat="server" Text="Label" Visible="False"></asp:Label></td>
                </tr>
                <tr id="A_DateTimeSearch">
                    <td class="table_body ">
                        起始时间
                    </td>
                    <td class="table_none ">
                        <asp:TextBox ID="S_E_DateTime" title="请输入开始日期~:date" onfocus="javascript:HS_setDate(this);"
                            Columns="10" runat="server" CssClass="text_input"></asp:TextBox>~<asp:TextBox ID="E_E_DateTime"
                                title="请输入结束日期~:date" onfocus="javascript:HS_setDate(this);" Columns="10" runat="server"
                                CssClass="text_input"></asp:TextBox>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td colspan="4" align="right">
                        <asp:Button ID="Button1" runat="server" CssClass="button_bak" Text="统计" OnClick="Button1_Click" /></td>
                </tr>
            </table>
            <asp:GridView ID="GvRepDept" runat="server" AutoGenerateColumns="False" Width="100%"
                PageSize="20">
                <Columns>
                    <asp:BoundField HeaderText="报修部门" DataField="G_CName" />
                    <asp:BoundField HeaderText="报修数量" DataField="RepCount" />
                    <asp:BoundField DataField="AllCount" HeaderText="各部门报修总数" />
                    <asp:BoundField HeaderText="所占比例" DataField="RATE" />
                </Columns>
            </asp:GridView>
            <FrameWorkWebControls:AspNetPager ID="PagerRept" runat="server" OnPageChanged="PagerRept_PageChanged">
            </FrameWorkWebControls:AspNetPager>
        </FrameWorkWebControls:TabOptionItem>
        <FrameWorkWebControls:TabOptionItem ID="TabOptionItem2" runat="server" Tab_Name="报修人员统计">
            <table width="100%" border="0" cellspacing="1" cellpadding="3" align="center">
                <tr id="Tr1">
                    <td class="table_body ">
                        服务单类型
                    </td>
                    <td class="table_none ">
                        <asp:DropDownList ID="ddlRepsnType" runat="server" Width="84px">
                            <asp:ListItem Value="-1">全部</asp:ListItem>
                            <asp:ListItem Value="1">已解决</asp:ListItem>
                            <asp:ListItem Value="0">未解决</asp:ListItem>
                        </asp:DropDownList>
                        <asp:Label ID="labRepsnType" runat="server" Text="Label" Visible="False"></asp:Label>
                        <asp:Label ID="labRepsnGroup" runat="server" Text="Label" Visible="False"></asp:Label>
                        <asp:Label ID="lab_RePSNBeginTime" runat="server" Text="Label" Visible="False"></asp:Label>
                        <asp:Label ID="lab_RePSNEndTime" runat="server" Text="Label" Visible="False"></asp:Label></td>
                </tr>
                <tr id="Tr3">
                    <td class="table_body ">
                        报修部门
                    </td>
                    <td class="table_none ">
                        <asp:DropDownList ID="Dept_drpGroup" runat="server" Width="194px">
                            <asp:ListItem>不限</asp:ListItem>
                        </asp:DropDownList></td>
                </tr>
                <tr id="Tr2">
                    <td class="table_body ">
                        起始时间
                    </td>
                    <td class="table_none ">
                        <asp:TextBox ID="txt_RePSNBeginTime" title="请输入开始日期~:date" onfocus="javascript:HS_setDate(this);"
                            Columns="10" runat="server" CssClass="text_input"></asp:TextBox>~<asp:TextBox ID="txt_RePSNEndTime"
                                title="请输入结束日期~:date" onfocus="javascript:HS_setDate(this);" Columns="10" runat="server"
                                CssClass="text_input"></asp:TextBox></td>
                </tr>
                <tr>
                    <td colspan="4" align="right">
                        <asp:Button ID="btnRepsn" runat="server" CssClass="button_bak" Text="统计" OnClick="btnRepsn_Click" /></td>
                </tr>
            </table>
            <asp:GridView ID="GvRepPSN" runat="server" AutoGenerateColumns="False" Width="100%"
                PageSize="20">
                <Columns>
                    <asp:BoundField HeaderText="报修部门" DataField="G_CName" />
                    <asp:BoundField HeaderText="报修人员工号" DataField="REPUSERNO" />
                    <asp:BoundField DataField="REPUSERNAME" HeaderText="报修人员姓名" />
                    <asp:BoundField HeaderText="报修数量" DataField="REPSUM" />
                </Columns>
            </asp:GridView>
            <FrameWorkWebControls:AspNetPager ID="PagerPSN" runat="server" OnPageChanged="PagerPSN_PageChanged">
            </FrameWorkWebControls:AspNetPager>
        </FrameWorkWebControls:TabOptionItem>
        <FrameWorkWebControls:TabOptionItem ID="TabOptionItem3" runat="server" Tab_Name="维修人员统计">
            <table width="100%" border="0" cellspacing="1" cellpadding="3" align="center">
                <tr id="Tr6">
                    <td class="table_body " style="height: 30px">
                        起始时间
                    </td>
                    <td class="table_none " style="height: 30px">
                        <asp:TextBox ID="txt_ReSolvPSNBeginTime" runat="server" Columns="10" CssClass="text_input"
                            onfocus="javascript:HS_setDate(this);" title="请输入开始日期~:date"></asp:TextBox>~<asp:TextBox
                                ID="txt_ReSolvPSNEndTime" runat="server" Columns="10" CssClass="text_input" onfocus="javascript:HS_setDate(this);"
                                title="请输入结束日期~:date"></asp:TextBox><asp:Label ID="lab_ReSolvPSNBeginTime" runat="server"
                                    Text="Label" Visible="False"></asp:Label><asp:Label ID="lab_ReSolvPSNEndTime" runat="server"
                                        Text="Label" Visible="False"></asp:Label></td>
                </tr>
                <tr>
                    <td colspan="4" align="right">
                        <asp:Button ID="btn_ReSolvPSN" runat="server" CssClass="button_bak" Text="统计" OnClick="btn_ReSolvPSN_Click" /></td>
                </tr>
            </table>
            <asp:GridView ID="gvDocSolvPSN" runat="server" AutoGenerateColumns="False" Width="100%"
                PageSize="20">
                <Columns>
                    <asp:BoundField HeaderText="维修人员工号" DataField="U_UserNO" />
                    <asp:BoundField DataField="U_CName" HeaderText="维修人员姓名" />
                    <asp:BoundField HeaderText="已处理服务单数量" DataField="docsum" />
                    <asp:BoundField HeaderText="待处理服务单数量" DataField="unsolvsum" />
                </Columns>
            </asp:GridView>
            <FrameWorkWebControls:AspNetPager ID="PagerDocSolvPSN" runat="server" OnPageChanged="PagerDocSolvPSN_PageChanged">
            </FrameWorkWebControls:AspNetPager>
        </FrameWorkWebControls:TabOptionItem>
        <FrameWorkWebControls:TabOptionItem ID="TabOptionItem4" runat="server" Tab_Name="故障类型统计">
            <table width="100%" border="0" cellspacing="1" cellpadding="3" align="center">
                <tr id="Tr5">
                    <td class="table_body ">
                        服务单类型
                    </td>
                    <td class="table_none ">
                        <asp:DropDownList ID="Troub_drpState" runat="server" Width="84px">
                            <asp:ListItem Value="-1">全部</asp:ListItem>
                            <asp:ListItem Value="1">已解决</asp:ListItem>
                            <asp:ListItem Value="0">未解决</asp:ListItem>
                        </asp:DropDownList><asp:Label ID="Troub_labState" runat="server" Style="position: relative"
                            Text="Label" Visible="False"></asp:Label><asp:Label ID="Troub_labBeginTime" runat="server"
                                Style="position: relative" Text="Label" Visible="False"></asp:Label><asp:Label ID="Troub_labEndTime"
                                    runat="server" Style="position: relative" Text="Label" Visible="False"></asp:Label></td>
                </tr>
                <tr id="Tr7">
                    <td class="table_body " style="height: 30px">
                        起始时间
                    </td>
                    <td class="table_none " style="height: 30px">
                        <asp:TextBox ID="Troub_txtBeginTime" runat="server" Columns="10" CssClass="text_input" onfocus="javascript:HS_setDate(this);"
                            title="请输入开始日期~:date" OnTextChanged="Troub_txtBeginTime_TextChanged"></asp:TextBox>~<asp:TextBox ID="Troub_txtEndTime" runat="server" Columns="10"
                                CssClass="text_input" onfocus="javascript:HS_setDate(this);" title="请输入结束日期~:date"></asp:TextBox></td>
                </tr>
                <tr>
                    <td colspan="4" align="right">
                        <asp:Button ID="Troub_btnRep" runat="server" CssClass="button_bak" Text="统计" OnClick="Troub_btnRep_Click" /></td>
                </tr>
            </table>
            <asp:GridView ID="gvStatByTroub" runat="server" AutoGenerateColumns="False" Width="100%"
                PageSize="20">
                <Columns>
                    <asp:BoundField HeaderText="故障类型" DataField="V_Text" />
                    <asp:BoundField HeaderText="报修数量" DataField="DocCOUNT" />
                    <asp:BoundField DataField="AllCount" HeaderText="报修总数" />
                    <asp:BoundField HeaderText="所占比例" DataField="RATE" />
                </Columns>
            </asp:GridView>
            <FrameWorkWebControls:AspNetPager ID="PagerStatByTroub" runat="server" OnPageChanged="PagerStatByTroub_PageChanged">
            </FrameWorkWebControls:AspNetPager>
        </FrameWorkWebControls:TabOptionItem>
        <FrameWorkWebControls:TabOptionItem ID="TabOptionItem5" runat="server" Tab_Name="问题类型统计">
            <table width="100%" border="0" cellspacing="1" cellpadding="3" align="center">
                <tr id="Tr4">
                    <td class="table_body ">
                        服务单类型
                    </td>
                    <td class="table_none ">
                        <asp:DropDownList ID="ProbType_drpState" runat="server" Width="84px">
                            <asp:ListItem Value="-1">全部</asp:ListItem>
                            <asp:ListItem Value="1">已解决</asp:ListItem>
                            <asp:ListItem Value="0">未解决</asp:ListItem>
                        </asp:DropDownList></td>
                </tr>
                <tr id="Tr8">
                    <td class="table_body " style="height: 30px">
                        起始时间
                    </td>
                    <td class="table_none " style="height: 30px">
                        <asp:TextBox ID="ProbType_txtBeginTime" runat="server" Columns="10" CssClass="text_input" onfocus="javascript:HS_setDate(this);"
                            title="请输入开始日期~:date"></asp:TextBox>~<asp:TextBox ID="ProbType_txtEndTime" runat="server" Columns="10"
                                CssClass="text_input" onfocus="javascript:HS_setDate(this);" title="请输入结束日期~:date"></asp:TextBox><asp:Label
                                    ID="ProbType_labState" runat="server" Style="position: relative" Text="Label" Visible="False"></asp:Label><asp:Label
                                        ID="ProbType_labBeginTime" runat="server" Style="position: relative" Text="Label" Visible="False"></asp:Label><asp:Label
                                            ID="ProbType_labEndTime" runat="server" Style="position: relative" Text="Label" Visible="False"></asp:Label></td>
                </tr>
                <tr>
                    <td colspan="4" align="right">
                        <asp:Button ID="ProbType_btnRep" runat="server" CssClass="button_bak" Text="统计" OnClick="ProbType_btnRep_Click" /></td>
                </tr>
            </table>
            <asp:GridView ID="gvStatByProbType" runat="server" AutoGenerateColumns="False" Width="100%"
                PageSize="20">
                <Columns>
                    <asp:BoundField HeaderText="问题类型" DataField="V_Text" />
                    <asp:BoundField HeaderText="报修数量" DataField="DocCOUNT" />
                    <asp:BoundField DataField="AllCount" HeaderText="报修总数" />
                    <asp:BoundField HeaderText="所占比例" DataField="RATE" />
                </Columns>
            </asp:GridView>
            <FrameWorkWebControls:AspNetPager ID="PagerStatByProbType" runat="server" OnPageChanged="PagerStatByProbType_PageChanged">
            </FrameWorkWebControls:AspNetPager>
        </FrameWorkWebControls:TabOptionItem>
    </FrameWorkWebControls:TabOptionWebControls>
</asp:Content>
